@charset "utf-8";
/*  init    define  */
$theme_color: #ff9344;

/*------------------------------*/
/*          function            */
/*------------------------------*/
@function rem($px) {
    @return ($px / 100) * 1rem;
}

/*  不需要随屏幕变化的 2倍图 除以2  */
@function half($px) {
    @return ($px * 375 /750) * 1px;
}

/*------------------------------*/
/*              class           */
/*------------------------------*/

/*  code reusing: son item justify    */
@mixin inline_blocks_justify {
    text-align: justify;
    &::after{
        content: "";
        display: inline-block;
        width: 100%;
    }
}


/*  img_processing  */
.img_processing{
    width: 100%;
    height:100%;
}
/*  title_icon + title_text */
.title_area{
    width: rem(221);
    height: inherit;
    box-sizing: border-box;
    padding-left: rem(21);
    padding-top: rem(35); 
}
.title_icon{
    width: rem(57);
    height: rem(53);
    vertical-align: bottom;
}
.title_text{
    font-size: rem(30);
    font-family: "Microsoft YaHei", "Microsoft YaHei UI", "微软雅黑", Arial,Helvetica, Tahoma, STXihei, "华文细黑",SimSun, "宋体", Heiti, "黑体", sans-serif;
    color: black;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*  button    */
.button{
    width: rem(111);
    height: rem(59);
    border-radius: rem(16);
    background-color: #ff9344;
    text-align: center;
    p{
        @extend .title_text;
        color: white;
        line-height: rem(59);
    }
}
/*-------------------------------*/
/*              layout           */
/*-------------------------------*/
header {
    position: fixed;
    width: 100%;
    height: half(124);
    top: 0;
    padding: half(48) half(24) half(18);

    .back_button {
        width: half(118);
        height: half(52);
        border: 1px solid #ff9344;
        border-radius: half(14);
        p{
            @extend .title_text;
            font-size: half(26);
            line-height: half(52);
            text-align: center;
        }
    }

    .starBar {
        font-size: 0;
        width: half(48);
        height: half(51);
        overflow: hidden;
    }

    .nameBar {
        margin: 0 auto;
        width: half(300);
        height: half(52);
        overflow: hidden;
        text-align: center;

        p{
            @extend .title_text;
            line-height: half(52);
            font-size: half(26);
        }

    }
}

#main {
    position: fixed;
    top: half(150);
    bottom: half(136);
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    font-size: 0;
    box-sizing: border-box;
    padding-left: rem(23);
    padding-right: rem(23);

    .food_part{
        // delete...
        width: inherit;
        .food_img{
            width: inherit;
            img{
                width: 100%;
            }
        }
        .food_info{
            box-sizing: border-box;
            padding: rem(37) rem(21) rem(40);
            background-color: #fff;
            .food_cost{
                height: rem(76);
                p{
                    @extend .title_text;
                    font-size: rem(72);
                    line-height: rem(64);
                    color: $theme_color;
                }
            }
        }
        .evaluation{
            height: rem(62);
            box-sizing: border-box;
            padding: 0 rem(21);
            background-color: #fff;
            .e_percentage{
                height: inherit;
                div{
                    margin-top: rem(10);
                    width: rem(36);
                    height: rem(36);
                    overflow: hidden;
                }
                p{
                    line-height: rem(62);
                    text-indent: rem(15);
                    em{
                        color: #ff9344;
                    }
                }
            }
            .e_sum{
                height: inherit;
                p{
                    color: #8e8e8e;
                    font-size: rem(26);
                    line-height: rem(62);
                }
            }
        }
    }

    .shop_part{
        box-sizing: border-box;
        padding: rem(20) rem(21);

        .shop_title{
            width: inherit;
            height: rem(67);
            background-color: $theme_color;
            p{
                color: white;
                line-height: rem(67);
            }
            .arrow{
                font-size: rem(46.72);
            }
        }
        .shop_area{
            border-top: 1px solid transparent;
            margin-top: rem(10);
            
            .shop_img{
                width: rem(177);
                height: rem(176);
                overflow: hidden;
            }
            .shop_info{
                box-sizing: border-box;
                padding-top: rem(11);
                width: rem(462);
                .shop_info_l{
                    width: rem(300);
                    .star_level{
                        width: rem(260);
                        height: rem(36);
                        margin-top: rem(8);
                        .star{
                            width: rem(36);
                            height: rem(36);
                            overflow: hidden;
                            img{
                                width: 100%;
                                height: 100%;
                            }
                        }
                        p{
                            font-size: rem(26);
                            color: #929292;
                            text-indent: rem(13);
                        }
                    }
                    
                    .distance{
                        height: rem(48);
                        p{
                            font-size: rem(26);
                            color: #929292;
                            line-height: rem(48);
                        }
                    }
                    .look_for_detail{
                        height: rem(38);
                        p{
                            font-size: rem(20);
                            color: $theme_color;
                            line-height: rem(38);
                        }
                    }

                }

                .button{
                    margin-top: rem(56);
                }
            }
        }
    }

   

}
